//
//  MyConmentCtrl.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/1/8.
//  Copyright © 2016年 game. All rights reserved.
//

#import "MyConmentCtrl.h"
#import "PersonNavView.h"
#import "SlideView.h"
#import "MycommentTabView.h"

@interface MyConmentCtrl ()

@end

@implementation MyConmentCtrl
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
    self.app.myTabBar.tabBar.hidden = YES;
     [self NavView];
    StatusBlack;
}

#pragma mark--自定义导航
-(void)NavView{
    PersonNavView *naview = [[PersonNavView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 64)];
    naview.title.text = @"我的点评";
    
    __weak typeof(self) weakSelf = self;
    naview.BackToFatherView = ^{
        [weakSelf.navigationController popViewControllerAnimated:YES];
    };
    [self.view addSubview:naview];
}

- (void)viewDidLoad {
    [super viewDidLoad];
   
    SlideView *slide = [[NSBundle mainBundle]loadNibNamed:@"SlideView" owner:nil options:nil].lastObject;
    slide.frame =CGRectMake(0, 64, SCREEN_WIDTH, SCREEN_HEIGHT-64);
  
    [self.view addSubview:slide];
    slide.titleAry = @[@"钓场点评",@"渔具店点评"] ;
    
    MycommentTabView *tableview = [[MycommentTabView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-64-40) style:UITableViewStylePlain];
    tableview.tag=1;
    tableview.url = my_diaochang_comment;
    [slide.scrollview addSubview:tableview];
    
    
    MycommentTabView *tableview2 = [[MycommentTabView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH, 0, SCREEN_WIDTH, SCREEN_HEIGHT-64-40) style:UITableViewStylePlain];
    tableview2.url = my_dianpu_comment;
    tableview2.tag=2;
    [slide.scrollview addSubview:tableview2];
}

@end
